import { http } from '@/utils/http'
export interface AppConfigRes {
  register: boolean
  captcha: boolean
}

export const getAppConfig = () => {
  return http.request<AppConfigRes>('get', '/api/apps/config')
}
export const setRegisterEn = (data: { enable: Boolean }) => {
  return http.request('put', '/api/apps/register', { data })
}

export const setCaptchaEn = (data: { enable: Boolean }) => {
  return http.request('put', '/api/apps/captcha', { data })
}
